package com.hxx.controller;

import com.hxx.ai.Aissistant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AiController {

    @Autowired
    private Aissistant aissistant;

    @GetMapping("/chat")
    public String chat(String prompt) {
        return aissistant.chat(prompt);
    }

}


























